package libra.gatewayListener.implByApplicationListener;

import org.springframework.boot.context.event.ApplicationReadyEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/** 
 * 自定义Event事件处理，主要监听RefreshEvent事件的发布 
 */
//@Component
public class ExecuteApplicationReadyEvent implements ApplicationListener<ApplicationReadyEvent> {
	/*
	 * 捕获到ReactiveWebServerInitializedEvent...
	 * 捕获到ApplicationStartedEvent...
	 * 捕获到ApplicationReadyEvent...
	 */
	@Override
	public void onApplicationEvent(ApplicationReadyEvent event) {
		System.err.println( "捕获到ApplicationReadyEvent..." );
	}
}